package net.zigin.nhi.could.waste.service.impl;

import net.zigin.commons.util.ParamsMapUtil;
import net.zigin.commons.util.ReflectUtil;
import net.zigin.commons.util.StringUtil;
import net.zigin.nhi.could.waste.aop.LoginAspect;
import net.zigin.nhi.could.waste.dao.BaseMapper;
import net.zigin.nhi.could.waste.dao.SysUpgradeMapper;
import net.zigin.nhi.could.waste.dto.SysUpgradeDto;
import net.zigin.nhi.could.waste.model.SysUpgrade;
import net.zigin.nhi.could.waste.service.SysUpgradeService;
import net.zigin.nhi.could.waste.util.OSSClientUtil;
import net.zigin.nhi.could.waste.vo.SysUpgradeVo;
import net.zigin.nhi.could.waste.vo.TokenInfoBo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/*#################################################################*
# 说明:以下代码通过哲勤代码生成工具自动生成    
# 工具:GeneratorCode
# 作者:mgw1986                                                  
# 生成时间:2021-9-14 20:30:11                                               
##################################################################*/


/**
 * SysUpgrade服务实现类
 *
 * @author mgw1986
 * @version V1.0
 * @ClassName: SysUpgradeServiceImpl
 * @date 2021-9-14 20:30:11
 */
@Service
public class SysUpgradeServiceImpl extends AbstractServiceImpl<SysUpgrade, String> implements SysUpgradeService {
    @Autowired
    private SysUpgradeMapper sysUpgradeMapper;
    @Autowired
    private OSSClientUtil ossClientUtil;

    @Override
    public BaseMapper<SysUpgrade, String> getMapper() {
        return sysUpgradeMapper;
    }

    @Override
    public SysUpgradeVo checkUpdate() {
        SysUpgrade lastest = sysUpgradeMapper.getLastest();
        return ReflectUtil.copyProperties(lastest,SysUpgradeVo.class);
    }
}